package com.shycloud.mido.music.service;

import com.shycloud.mido.music.dto.CheckUploadResultDTO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * 上传曲谱业务
 *
 * @author nianhua.jiang
 * @date 2020/8/4 14:14
 */
public interface MisMusiOssService {

	/**
	 * 上传曲目文件
	 *
	 * @param files
	 * @param collectionId
	 * @param musicId
	 * @return java.lang.Integer
	 * @author nianhua.jiang
	 * @date 2020/8/4 14:19
	 */
	Integer uploadMusicFile(List<MultipartFile> files, Integer collectionId, Integer musicId);

	/**
	 * 上传伴奏资源
	 *
	 * @param files
	 * @param collectionId
	 * @param musicId
	 * @return java.lang.Boolean
	 * @author nianhua.jiang
	 * @date 2020/8/4 17:17
	 */
	Boolean uploadKala(List<MultipartFile> files, Integer collectionId, Integer musicId);

	/**
	 * 上传音视资源
	 *
	 * @param files
	 * @param collectionId
	 * @param musicId
	 * @return java.lang.Boolean
	 * @author nianhua.jiang
	 * @date 2020/8/4 17:33
	 */
	Boolean uploadMp3AndMV(List<MultipartFile> files, Integer collectionId, Integer musicId);

	/**
	 * 批量上传曲目
	 *
	 * @param files
	 * @param collectionId
	 * @return java.lang.Boolean
	 * @author nianhua.jiang
	 * @date 2020/8/4 17:42
	 */
	Boolean uploadBatchMusic(List<MultipartFile> files, Integer collectionId);

	/**
	 * 批量上传伴奏
	 *
	 * @param files
	 * @param collectionId
	 * @return java.lang.Boolean
	 * @author nianhua.jiang
	 * @date 2020/8/4 17:50
	 */
	Boolean uploadBatchKala(List<MultipartFile> files, Integer collectionId);

	/**
	 * 音频批量上传
	 *
	 * @param files
	 * @param collectionId
	 * @return java.lang.Boolean
	 * @author nianhua.jiang
	 * @date 2020/8/4 17:54
	 */
	Boolean uploadBatchMP3(List<MultipartFile> files, Integer collectionId);

	/**
	 * MV文件批量上传
	 *
	 * @param files
	 * @param collectionId
	 * @return java.lang.Boolean
	 * @author nianhua.jiang
	 * @date 2020/8/4 17:56
	 */
	String uploadBatchMv(List<MultipartFile> files, Integer collectionId);

	/**
	 * 检查MV文件批量上传结果
	 *
	 * @param updateBatchId
	 * @param collectionId
	 * @return java.lang.Boolean
	 * @author nianhua.jiang
	 * @date 2020/8/4 17:56
	 */
	List<CheckUploadResultDTO> checkBatchMvResult(String updateBatchId, Integer collectionId);
}
